﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Admin.Master" Inherits="System.Web.Mvc.ViewPage<TVXD23.Web.Models.ViewModel.ImageFullModel>" %>

<asp:Content ID="indexTitle" ContentPlaceHolderID="TitleContent" runat="server">
    Up ảnh lên cho website
</asp:Content>
<asp:Content ID="indexContent" ContentPlaceHolderID="MainContent" runat="server">
<h3><%:Model.Message %></h3>
<%Html.EnableClientValidation(); %>
    <form enctype="multipart/form-data" method="post">
    <hr />
    <div class="editor-label">
        Chọn danh mục để up :
    </div>
    <div class="editor-field">
        <select name="AlbumId" style="width: 200px; float: left">
            <%foreach (var item in Model.ListAlbum)
              { %>
            <option value="<%:item.ID %>">
                <%:item.AlbumName %>
            </option>
            <% } %>
        </select>
    </div>
    <div class="editor-label">
       <br /> Chọn ảnh để up :
    </div>
    <div class="editor-field">
        <input type="file" name="uploadFile" id="uploadFile" />
    </div>
    <div class="editor-label">
       <b> Tên ảnh(*)</b> :<%:Html.ValidationMessageFor(m=>m.ImageName) %>
    </div>
    <div class="editor-field">
        <input type="text" class="inp-form" name="ImageName" />
    </div>
    <div class="editor-label">
        Tên ảnh tiếng anh :<%:Html.ValidationMessageFor(m=>m.ImageNameEnglish) %>
    </div>
    <div class="editor-field">
        <input type="text" class="inp-form" name="ImageNameEnglish" />
    </div>
    <div class="editor-label">
        Mô tả :<%:Html.ValidationMessageFor(m=>m.Description) %>
    </div>
    <div class="editor-field">
        <textarea class="ckeditor" name="Description" rows="5" cols="80"></textarea><br />
        <b><%:Html.ValidationMessageFor(m=>m.Description) %></b>
    </div>
     <div class="editor-label">
        Mô tả tiếng anh:<%:Html.ValidationMessageFor(m=>m.DescriptionEnglish) %>
    </div>
    <div class="editor-field">
        <textarea class="ckeditor" name="DescriptionEnglish" rows="5" cols="80"></textarea><br />
        <b><%:Html.ValidationMessageFor(m=>m.Description) %></b>
    </div>
    <div class="editor-label">
         <input type="submit" class="form-submit" />
    </div>
    </form>
</asp:Content>
